package com.yunzhi.net.api;

import com.cloudknow.bean.RoleLoginBean;
import com.cloudknow.bean.UserInfoBean;
import com.cloudknow.common.Constant;
import com.google.android.material.circularreveal.CircularRevealHelper;
import com.yunzhi.net.entity.BaseResponse;

import java.util.List;
import java.util.Map;

import butterknife.internal.Constants;
import io.reactivex.Observable;
import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.Field;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.Headers;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.PartMap;
import retrofit2.http.Streaming;
import retrofit2.http.Url;


public interface ShopApi {


    @FormUrlEncoded
    @POST("url")
    Observable<BaseResponse<Object>> initApp(@FieldMap Map<String, Object> map);

    @FormUrlEncoded
    @POST(Constant.Api + "/login")
    Observable<BaseResponse<UserInfoBean>> initLogin(@FieldMap Map<String, Object> map);



    @FormUrlEncoded
    @POST(Constant.Api + "/login")
    Observable<BaseResponse<UserInfoBean>> initLogin3(@FieldMap Map<String, Object> map);


    @FormUrlEncoded
    @POST(Constant.Api + "/run/task")
    Observable<BaseResponse<Object>> runningTask(@FieldMap Map<String, Object> map);

    @FormUrlEncoded
    @POST(Constant.Api + "/run/start")
    Observable<BaseResponse<Object>> runningTaskStart(@FieldMap Map<String, Object> map);

    @FormUrlEncoded
    @POST(Constant.Api + "/run/finish")
    Observable<BaseResponse<Object>> runningTaskFinish(@FieldMap Map<String, Object> map);




}
